// 请求公共
import { get, post } from './request'

// 登录
export const login = (params) => {
    return get('/login/login', params)
}

// 微信登录
export const wxLogin = (params) => {
    return get('/weChat/login', params)
}

// 获取菜单类型
export const dictDataList = (params) => {
    return get('/dictData/selectList', params)
}

// 根据菜单类型获取菜品
export const dishesMenuList = (params) => {
    return get('/dishesMenu/selectList', params)
}

// 新增菜品到已点
export const addOrEditShoppingCart = (params) => {
    return post('/shoppingCart/addOrEditShoppingCart', params)
}

// 删除已点菜品
export const delShoppingCart = (params) => {
    return get('/shoppingCart/deleteById', params)
}

// 查询已点列表
export const shoppingCart = (params) => {
    return get('/shoppingCart/selectList', params)
}

// 保存记录
export const saveToMy = () => {
    return get('/shoppingCart/saveToMy', null)
}